package com.hospital.domain;

import java.io.Serializable;
import java.lang.reflect.Array;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
public class BloodTransfusionRecord implements Serializable {

    @TableId(type= IdType.AUTO)
    private Integer transfusionId;

    private Integer patientId;

    private Integer doctorId;

    @TableField("hospital_id")
    private Integer hospitalId;

    private Integer bloodProductTypeId;

    private String bloodType;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date transfusionDate;

    private Double volume;

    private Integer adverseReactionId;

    @TableField(exist = false)
    private String HospitalName;

    @TableField(exist = false)
    private String PatientName;

    @TableField(exist = false)
    private String ProductTypeName;

    @TableField(exist = false)
    private String DoctorName;

    private static final long serialVersionUID = 1L;
}